import { createApp } from 'vue'
import { createPinia } from 'pinia'
import TDesign from 'tdesign-vue-next'
import App from './App.vue'
import router from './router'
import 'tdesign-vue-next/es/style/index.css'

import { createTerminal, type VueWebTerminal } from 'vue-web-terminal'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(TDesign)

const terminal: VueWebTerminal = createTerminal()
terminal.configStoreName('terminalHistory')
terminal.configMaxStoredCommandCountPerInstance(200)
app.use(terminal)

app.mount('#app')
